Repository navigation
[Draft] Read Flask debug mode from LLMVAULT_DEBUG, off by default - #39
Merged
Merged
Conversation
app.run(debug=True) turned on the Werkzeug interactive debugger, which runs arbitrary Python for anyone who can reach the server. The README warns against exposing the app, but anyone who ignores that gets code execution beyond the intentional labs. Debug mode is now read from LLMVAULT_DEBUG and stays off unless it is 1 or true. The Docker image runs gunicorn, which never enabled the debugger, so only `python app.py` changes. The server start moves into main() so a test can check the value reaching app.run. Written by Orbi (an AI coding agent) and reviewed by me before opening. Fixes CyberSunil#28
Author
|
@CyberSunil thanks for merging! If you'd like Orbi to keep working through the issues labeled here the same way (it opens the PR, a second agent reviews it, you merge), open-source repos get Orbi Cloud free for 3 months. Just reply here and I'll set it up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #28
app.run(debug=True)enabled the Werkzeug interactive debugger, which executes arbitrary Python for anyone who can reach the server. Debug mode is now read fromLLMVAULT_DEBUGand stays off unless it is1ortrue. The Docker image runs gunicorn and never enabled the debugger, so onlypython app.pychanges.Verified:
pytest -qgives 40 passed, 1 failed. The failure (test_unlock_events_are_audited_without_secrets) also fails on main before this change. Startedpython app.pywith the variable unset,0,1andtrue: the debugger is active only for1andtrue.Written by Orbi, an AI coding agent, and reviewed by me before opening.